package com.april.dcds;




public class LinkTest {
    public static void main(String[] args){
        LinkList linkList=new LinkList();
        linkList.add(1);
        linkList.add(2);
        System.out.println(linkList.toString());
        linkList.reverseLink();
        System.out.println(linkList.toString());
        LinkedStack linkedStack=new LinkedStack<String>();
        linkedStack.push(1);
        linkedStack.push("dada");
        System.out.println(linkedStack.size()+" "+linkedStack.toString());
        System.out.println(linkedStack.pop());
        System.out.println(linkedStack.pop());
        System.out.println(linkedStack.pop());
        LinkedQuene quene=new LinkedQuene();
        quene.add(1);
        quene.add("dada");
        System.out.println(quene.size()+"  "+quene.toString());
        System.out.println(quene.delete());
        System.out.println(quene.delete());
        System.out.println(quene.delete());


    }
}
